/**
 * @description 存储配置（mysql、redis）
 * @author malin
 */

const { isPrd } = require('../utils/env')

let MYSQL_CONF = {
    database: 'koa2-pyq',
    host: '127.0.0.1',
    port: '3306',
    user: 'root',
    password: '123456'
}

// 生产环境配置
if (isPrd) {
    MYSQL_CONF = {
        database: 'koa2-pyq',
        host: '127.0.0.1',
        port: '3306',
        user: 'root',
        password: '123456'
    }
}

module.exports = {
    MYSQL_CONF
}
